#include "app_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
     char *json_str = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
     char mesage_chars[100] = {0};
     int chars_len = app_message_jsonToChars(json_str, mesage_chars, 100);
     log_debug("mesage_chars:%s", mesage_chars);

    
    char *mesage_json = app_message_charsToJson(mesage_chars, chars_len);
    log_debug("mesage_json:%s", mesage_json);
    return 0;
}
